package com.event;

import com.handler.BaseHandler;
import lombok.Data;

import java.util.function.Predicate;

/**
 * @author : gameZhao
 * @version V1.0
 * @Project: disruptorDemo
 * @Package event
 * @Description: TODO
 * @date Date : 2021年12月27日 14:07
 */
@Data
public class ProcessorEvent implements ReleaseEvent {
    
    private BaseHandler handler;
    
    public ProcessorEvent() {
    }
    
    public ProcessorEvent(BaseHandler handler) {
        this.handler = handler;
    }
    
    @Override
    public void release() {
        this.handler = null;
    }
}
